package com.zk.nacosprovider.Entity;

import java.io.Serializable;

public class commodity implements Serializable {
    private String commodityid;

    private String commodityname;

    private Integer commoditystate;

    private Integer commodityprice;

    private String commidityphotoaddress;

    private String commiditybriefintroduction;

    private String commiditycomment;

    private Integer commiditycommenttoexamine;

    private Integer falsedeletion;

    private String commodityinstructions;

    private static final long serialVersionUID = 1L;

    public String getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(String commodityid) {
        this.commodityid = commodityid == null ? null : commodityid.trim();
    }

    public String getCommodityname() {
        return commodityname;
    }

    public void setCommodityname(String commodityname) {
        this.commodityname = commodityname == null ? null : commodityname.trim();
    }

    public Integer getCommoditystate() {
        return commoditystate;
    }

    public void setCommoditystate(Integer commoditystate) {
        this.commoditystate = commoditystate;
    }

    public Integer getCommodityprice() {
        return commodityprice;
    }

    public void setCommodityprice(Integer commodityprice) {
        this.commodityprice = commodityprice;
    }

    public String getCommidityphotoaddress() {
        return commidityphotoaddress;
    }

    public void setCommidityphotoaddress(String commidityphotoaddress) {
        this.commidityphotoaddress = commidityphotoaddress == null ? null : commidityphotoaddress.trim();
    }

    public String getCommiditybriefintroduction() {
        return commiditybriefintroduction;
    }

    public void setCommiditybriefintroduction(String commiditybriefintroduction) {
        this.commiditybriefintroduction = commiditybriefintroduction == null ? null : commiditybriefintroduction.trim();
    }

    public String getCommiditycomment() {
        return commiditycomment;
    }

    public void setCommiditycomment(String commiditycomment) {
        this.commiditycomment = commiditycomment == null ? null : commiditycomment.trim();
    }

    public Integer getCommiditycommenttoexamine() {
        return commiditycommenttoexamine;
    }

    public void setCommiditycommenttoexamine(Integer commiditycommenttoexamine) {
        this.commiditycommenttoexamine = commiditycommenttoexamine;
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    public String getCommodityinstructions() {
        return commodityinstructions;
    }

    public void setCommodityinstructions(String commodityinstructions) {
        this.commodityinstructions = commodityinstructions == null ? null : commodityinstructions.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        commodity other = (commodity) that;
        return (this.getCommodityid() == null ? other.getCommodityid() == null : this.getCommodityid().equals(other.getCommodityid()))
            && (this.getCommodityname() == null ? other.getCommodityname() == null : this.getCommodityname().equals(other.getCommodityname()))
            && (this.getCommoditystate() == null ? other.getCommoditystate() == null : this.getCommoditystate().equals(other.getCommoditystate()))
            && (this.getCommodityprice() == null ? other.getCommodityprice() == null : this.getCommodityprice().equals(other.getCommodityprice()))
            && (this.getCommidityphotoaddress() == null ? other.getCommidityphotoaddress() == null : this.getCommidityphotoaddress().equals(other.getCommidityphotoaddress()))
            && (this.getCommiditybriefintroduction() == null ? other.getCommiditybriefintroduction() == null : this.getCommiditybriefintroduction().equals(other.getCommiditybriefintroduction()))
            && (this.getCommiditycomment() == null ? other.getCommiditycomment() == null : this.getCommiditycomment().equals(other.getCommiditycomment()))
            && (this.getCommiditycommenttoexamine() == null ? other.getCommiditycommenttoexamine() == null : this.getCommiditycommenttoexamine().equals(other.getCommiditycommenttoexamine()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()))
            && (this.getCommodityinstructions() == null ? other.getCommodityinstructions() == null : this.getCommodityinstructions().equals(other.getCommodityinstructions()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCommodityid() == null) ? 0 : getCommodityid().hashCode());
        result = prime * result + ((getCommodityname() == null) ? 0 : getCommodityname().hashCode());
        result = prime * result + ((getCommoditystate() == null) ? 0 : getCommoditystate().hashCode());
        result = prime * result + ((getCommodityprice() == null) ? 0 : getCommodityprice().hashCode());
        result = prime * result + ((getCommidityphotoaddress() == null) ? 0 : getCommidityphotoaddress().hashCode());
        result = prime * result + ((getCommiditybriefintroduction() == null) ? 0 : getCommiditybriefintroduction().hashCode());
        result = prime * result + ((getCommiditycomment() == null) ? 0 : getCommiditycomment().hashCode());
        result = prime * result + ((getCommiditycommenttoexamine() == null) ? 0 : getCommiditycommenttoexamine().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        result = prime * result + ((getCommodityinstructions() == null) ? 0 : getCommodityinstructions().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commodityid=").append(commodityid);
        sb.append(", commodityname=").append(commodityname);
        sb.append(", commoditystate=").append(commoditystate);
        sb.append(", commodityprice=").append(commodityprice);
        sb.append(", commidityphotoaddress=").append(commidityphotoaddress);
        sb.append(", commiditybriefintroduction=").append(commiditybriefintroduction);
        sb.append(", commiditycomment=").append(commiditycomment);
        sb.append(", commiditycommenttoexamine=").append(commiditycommenttoexamine);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", commodityinstructions=").append(commodityinstructions);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}